﻿<div class="col-sm-1"></div>
<form class="form-horizontal col-sm-10" role="form" method="POST" action="/ManageArea/Home/CreateOrEditRole" id="formRole">
    <input name="id" type="hidden" data-bind='value: Id' />
    <div class="form-group">
        <label for="" class="col-sm-3 control-label">角色名称</label>
        <div class="col-sm-9">
            <input class="form-control" type="text" id="RoleName" name="RoleName" placeholder="用户名" data-bind='value: RoleName'>
        </div>

    </div>
    <div class="form-group">
        <label for="" class="col-sm-3 control-label">角色描述</label>
        <div class="col-sm-9">
            <input class="form-control" type="text" id="RoleDesc" name="RoleDesc" placeholder="描述" data-bind='value: RoleDesc'>
        </div>
    </div>

    <div class="form-group">
        <label for="" class="col-sm-3 control-label">状态</label>
        <div class="col-sm-9">
            @*<label class="checkbox-inline">
                <input type="checkbox" id="inlineCheckbox1" name="Status" data-bind="value: Status"> 启用
            </label>*@
            <div class="switch has-switch">
                <div class="switch-on">
                    <input type="checkbox" checked="" data-toggle="switch">
                    <span class="switch-left">ON</span><label>&nbsp;</label>
                    <span class="switch-right">OFF</span>
                </div>
            </div>
            <script>
                var roleInfo = @MvcHtmlString.Create(ViewBag.role)
            </script>
        </div>
    </div>
</form>
<div class="col-sm-1"></div>